import React from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { List, Icon,TextareaItem } from 'antd-mobile';
import content from '../../../common/contentCss/content.css';
import CustTitle from '../../../common/title/title';
import AddAppraiseView from './pages/addAppraise';

function AddAppraise({dispatch,loading,addAppraise}) {
  const {selfEvaluate} = addAppraise
  const addAppraiseProps = {
    selfEvaluate,
    onSubmit(data) {
      console.log('提交个人评价');
      console.log(data);
      dispatch({
        type:'addAppraise/putApprasie',
        payload:{
          data
        }
      })
    }
  }



  const MarginHeight = () => <div style={{height: '0.6em', backgroundColor:'#F5F5F9'}}></div>;

  return(
    <div>

      <AddAppraiseView {...addAppraiseProps} />
    </div>
  )
}

function mapStateToProps(state, ownProps) {
  return {
    addAppraise: state.addAppraise
  }
}

export default connect(mapStateToProps)(AddAppraise);
